<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<title>js实现的点击div区域外隐藏div区域</title>
		<style type="text/css">

		</style>
		<!-- <script type="text/javascript">
			window.onload = function() {
				var myDiv = document.getElementById("myDiv");
				document.addEventListener("click", function() {
					myDiv.style.display = "none";
				});
				myDiv.addEventListener("click", function(event) {
					event = event || window.event;
					event.stopPropagation();
				});
			};
		</script> -->
	</head>
	<body>
		<div>
			<p id="qq">22</p>
			<div>33</div>
		</div>
	</body>
	<script src="jQuery.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$('#qq').parent().removeChild('div')
	</script>
</html>
